import request from "@/utils/request";

// gpt
export function chat1111(data) {
  return request({
    url: "/chat",
    method: "post",
    responseType: "stream",
    data,
    auth: {
      username: "janedoe",
      password: "s00pers3cret",
    },
  });
}
// gpt
export function chat(data) {
  return {
    url: process.env.VUE_APP_BASE_API + "/chat",
    config: {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      body: JSON.stringify(data),
    },
  };
}
